package com.aliyun.messagemgt.repository;

import com.aliyun.messagemgt.domain.repository.ChannelNoRepository;
import com.aliyun.messagemgt.dto.ChannelNo;
import com.aliyun.messagemgt.dto.query.ChannelNoQuery;
import com.aliyun.messagemgt.repository.mappers.ChannelNoMapper;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description
 * @Author hzw
 * @Date 2020/12/22 16:58
 * @Version 1.0
 */
@Service
public class ChannelNoMybatisRepository implements ChannelNoRepository {
    @Autowired
    private ChannelNoMapper channelNoMapper;

    @Override
    public Page<ChannelNo> listChannelNoByRole(ChannelNoQuery channelNoQuery) {
        return channelNoMapper.listChannelNoByRole(channelNoQuery);
    }

    @Override
    public int delChannelNo(ChannelNoQuery channelNoQuery) {
        return channelNoMapper.delChannelNo(channelNoQuery);
    }

    @Override
    public int hiddenChannelNo(ChannelNoQuery channelNoQuery) {
        return channelNoMapper.hiddenChannelNo(channelNoQuery);
    }

    @Override
    public int modChannelNo(ChannelNo channelNo) {
        return channelNoMapper.modChannelNo(channelNo);
    }

    @Override
    public ChannelNo detailChannelNo(ChannelNoQuery channelNo) {
        return channelNoMapper.detailChannelNo(channelNo);
    }

    @Override
    public int insertUserInfoList(List list) throws DataAccessException {
        return channelNoMapper.insertUserInfoList(list);
    }
}
